From 4e7a96c5a831882463802cdd4f84fe1464969cb0 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Wed, 23 Mar 2022 12:29:43 +0100
Subject: refactor: use formatjs swc plugin

I'm not able to configure SWC plugins in Next.js so to make it works,
all translation must have an id.
---
 src/pages/sujet/[slug].tsx | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'src/pages/sujet/[slug].tsx')

diff --git a/src/pages/sujet/[slug].tsx b/src/pages/sujet/[slug].tsx
index bb22a88..30dd36c 100644
--- a/src/pages/sujet/[slug].tsx
+++ b/src/pages/sujet/[slug].tsx
@@ -138,6 +138,7 @@ const Topic: NextPageWithLayout<TopicProps> = ({ topic, allTopics }) => {
           ariaLabel={intl.formatMessage({
             defaultMessage: 'Table of Contents',
             description: 'TopicPage: ToC sidebar aria-label',
+            id: 'lsDB5G',
           })}
         >
           <ToC />
@@ -151,6 +152,7 @@ const Topic: NextPageWithLayout<TopicProps> = ({ topic, allTopics }) => {
                   {
                     defaultMessage: 'All posts in {name}',
                     description: 'TopicPage: posts list title',
+                    id: 'FLkF2R',
                   },
                   { name: topic.title }
                 )}
@@ -164,6 +166,7 @@ const Topic: NextPageWithLayout<TopicProps> = ({ topic, allTopics }) => {
           ariaLabel={intl.formatMessage({
             defaultMessage: 'Sidebar',
             description: 'TopicPage: right sidebar aria-label',
+            id: 'eu3beS',
           })}
         >
           <RelatedThematics thematics={relatedThematics.current} />
@@ -172,6 +175,7 @@ const Topic: NextPageWithLayout<TopicProps> = ({ topic, allTopics }) => {
             title={intl.formatMessage({
               defaultMessage: 'Others topics',
               description: 'TopicPage: topics list widget title',
+              id: '+4tiVb',
             })}
           />
         </Sidebar>
-- 
cgit v1.2.3

